package com.ziq.zcamp.bean.coupon

import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class DiscountsWayInfo : ProguardKeep, Serializable {
    //满减优惠规则
    var money_off_way : MoneyOffWayInfo? = null
    //折扣优惠规则
    var rate_off_way : RateOffWayInfo? = null


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as DiscountsWayInfo

        if (money_off_way != other.money_off_way) return false
        if (rate_off_way != other.rate_off_way) return false

        return true
    }

    override fun hashCode(): Int {
        var result = money_off_way?.hashCode() ?: 0
        result = 31 * result + (rate_off_way?.hashCode() ?: 0)
        return result
    }
}